﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <script language="javascript">

        var obj = new Object();
        obj.myname = "我是对象";
        obj.pro2 = "23";
        obj.pro3 = "abcdeg"; 

        for (items in obj) {
            document.write("属性:" + items + "的值是 (" + obj[items] + ")");
            document.write("<br>");
        }

    </script> 
</body>
</html>
